package grammer;

import grammer.components.Component;
import grammer.components.SubjectEnum;

/**
 * 
 * @author Minodor
 * 
 *         Contains the Subject - wrapped around enumeration
 */
public class Subject implements Member {
	private String name;
	private Component subject;

	public Subject(Component subject) {
		super();
		this.subject = subject;
	}

	@Override
	public Component getMember() {
		return getSubject();
	}

	public String getName() {
		return name;
	}

	public SubjectEnum getSubject() {
		return (SubjectEnum) subject;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setSubject(SubjectEnum subject) {
		this.subject = subject;
	}
}
